package com.egrid.point.bury.code;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * SimpleResponse.java
 * Created at 2019-12-27
 * Created by Royal Warmer
 * Copyright (C) 2018 SAIC VOLKSWAGEN, All rights reserved.
 */
@ApiModel("响应结果")
public class SimpleResponse extends AbstractResponse {

    public SimpleResponse() {
    }

    public static SimpleResponse success(String message) {
        return new SimpleResponse("200", message, null);
    }

    public static SimpleResponse success(String message, Object content) {
        return new SimpleResponse("200", message, content);
    }


    public static SimpleResponse fail(String message) {
        return new SimpleResponse("500", message, null);
    }

    public SimpleResponse(String code, String message, Object content) {
        this.code = code;
        this.message = message;
        this.content = content;
    }


}
